<%@ page contentType="text/html;charset=UTF-8" language="java"
	isELIgnored="false"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%
	String path = request.getContextPath();
	pageContext.setAttribute("rootUrl", path);
%>
<html>
<head>
<jsp:include page="common/assets.jsp" />
<s:head theme="xhtml" />
<sx:head parseContent="true" />
</head>
<body>
	<jsp:include page="common/navbar.jsp" />
	<div class="container-fluid">
		<div class="row-fluid">
			<jsp:include page="common/melu.jsp?active=list" />
			<div class="span9">
				<div class="hero-unit">
					<form class="well form-inline" action="${rootUrl }/admin/chosen_item_query_list.htm" method="post">
						 <select id="queryCategory" name="queryCategory">
				          <option value="1"  <c:if test="${queryCategory ==100200000 }">selected="selected"</c:if> >屌丝专区</option>
				          <option value="2" <c:if test="${queryCategory ==100100000 }">selected="selected"</c:if>>高富帅</option>
				          <option value="3" <c:if test="${queryCategory ==100300000 }">selected="selected"</c:if>>白富美</option>
				        </select>
						<sx:datetimepicker name="queryDate" id="datetimepick" displayFormat="yyyy-MM-dd" />
						<button type="submit" class="btn">查询</button>
					</form>
					<table class="table table-bordered table-striped">
					  <thead>
					      <tr>
					      	<th>序列</th>
					        <th>精选商品标题</th>
					        <th>价格</th>
					        <th>折扣价</th>
					        <th>最后修改时间</th>
					        <th>操作</th>
					      </tr>
					    </thead>
					    <tbody>
					    	<c:forEach var="item" items="${shangrilaItemList }" varStatus="status">
					    		 <tr>
					    		 	<td>${status.count}</td>
							        <td><a href="${item.taokeUrl }" target="_blank">${item.title }</a></td>
							        <td>${item.price }</td>
							        <td>${item.couponPrice }</td>
							        <td>${item.gmtModified }</td>
							        <td>
							        	<a href="${root }/admin/">删除</a>
							        	<a href="${root }/admin/">修改</a>
							        </td>
							      </tr>
					    	</c:forEach>
					    </tbody>
					  </table>
				</div>
			</div>
		</div>
		<jsp:include page="common/footer.jsp" />
	</div>
</body>
</html>
